package javabook.ch10;

public class StringBufferExam1 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		StringBuffer str1 = new StringBuffer("Hello JAVA");
		StringBuffer str2 = new StringBuffer("안녕하세요 자바 ");
		
		System.out.println("버퍼1내용 = > " + str1);

		System.out.println("버퍼1크기 = > " + str1.length());

		System.out.println("버퍼1용량 = > " + str1.capacity());
		
		//버퍼 크기보다 16이 큰 용량을 가진다. 
		
		System.out.println("버퍼2내용 = > " + str2);

		System.out.println("버퍼2크기 = > " + str2.length());

		System.out.println("버퍼2용량 = > " + str2.capacity());
		
	}

}
